﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;

namespace HCQ2_Model.VRDD.InputDto._0427
{
    /// <summary>
    ///  设为或取消蜜友
    /// </summary>
    public class CloseFriendInput
    {
        /// <summary>
        ///  登录用户编码
        /// </summary>
        [Required(ErrorMessage = "登录用户编码必传！")]
        public string userid { get; set; }
        /// <summary>
        ///  好友用户编码
        /// </summary>
        [Required(ErrorMessage = "好友用户编码必传！")]
        public string friendID { get; set; }
        /// <summary>
        ///  蜜友状态
        ///  1=设为蜜友，0=取消蜜友
        /// </summary>
        [RegularExpression("^([0,1])$", ErrorMessage = "请正确输入蜜友状态：0=取消蜜友；1=设为蜜友")]
        public int status { get; set; }
        /// <summary>
        ///  蜜友类别，设为蜜友时类别不能为空；数据来自数据字典CloseFriendType
        /// </summary>
        public int type { get; set; }
    }
    /// <summary>
    ///  获取用户类别
    /// </summary>
    public class UserTypeInput
    {
        /// <summary>
        ///  用户编码
        /// </summary>
        [Required(ErrorMessage = "用户编码必传！")]
        public string userID { get; set; }
    }
}